Skip to content

ci: build before packing in the publish workflow - #63

Merged
kamronbatman merged 1 commit into
mainfrom
ci/nuget-pack-builds
Nov 6, 2026
Merged

kamronbatman merged 1 commit into
mainfrom
ci/nuget-pack-builds

Conversation

@kamronbatman

@kamronbatman kamronbatman commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes the first publish run, which failed in Pack with NU5026: The file '.../bin/Release/net10.0/<assembly>.dll' to be packed was not found on disk.

The csproj sets GeneratePackageOnBuild=true, which makes dotnet pack skip its build step and pack whatever is already in bin/. On a clean runner that is nothing. The workflow now passes -p:GeneratePackageOnBuild=false to dotnet pack, so pack builds first. Local builds are unchanged.

Test plan

  • dotnet pack without the flag in a fresh clone reproduces NU5026
  • With the flag, every package in this repo packs from a fresh clone; native/analyzer/tool assets present
  • Publish workflow run succeeds after merge

With GeneratePackageOnBuild=true, dotnet pack skips its build step and
packs whatever is already in bin/. On a clean runner that is nothing,
so pack failed with NU5026. Turning it off for the pack makes pack
build first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kamronbatman
kamronbatman merged commit 114f185 into main Nov 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant